import {http} from './http'
import {MEMBER_EDIT} from '../constants/api'

class MemberSetting {

  async getSetting() {
    const data = await http.HPost(MEMBER_EDIT, {})
    if (data.data && data.data.member && data.data.is_open) {
      return data.data.member
    }
    return false
  }
}

export const member = new MemberSetting()
